<?php
class Admin extends Model 
{
	protected $table="admin";
	public function login($username,$pword)
	{
		$pword=md5($pword);
		$result=$this->findBySql(" * from $this->table where uname='$username' and pword='$pword'");
		if(count($result)>0)
		{
			return true;
		}
		else 
		{
			return false;
		}
	}
}